<?
include_once("./_common.php");
$mn_id = $_POST['a'];


$sql = "select * from manage_list where mn_id = $mn_id";
echo $sql;
$rst = mysql_query($sql) or die(mysql_error());

$mn_list = mysql_fetch_assoc($rst);

$zip_arr = explode('-', $mn_list['mn_zip']);
$zip1 = $zip_arr[0];
$zip2 = $zip_arr[1];
$addr_arr = explode('  ', $mn_list['mn_addr']);
$addr1 = $addr_arr[0];
$addr2 = $addr_arr[1];

//die("{\"zip1\":\"$zip1\",\"zip2\":\"$zip2\"}");


?>

<?
echo json_encode(array('zip1'=>$zip1,'zip2'=>$zip2, 'addr1'=>$addr1, 'addr2'=>$addr2));
?>
